package com.educate.book.dao;

import com.educate.book.dao.impl.ChildBookDaoImpl;
import com.educate.book.model.bo.ChildBookBO;
import com.educate.book.model.po.ChildBook;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ChildBookDao extends MongoRepository<ChildBook, String> {

    /**
     * #{@link ChildBookDaoImpl#query(ChildBookBO, Pageable)}
     */
    Page<ChildBook> query(ChildBookBO bo, Pageable pageable);
}
